//
//  HHPCommonService.m
//  HHPLiveVideo
//
//  Created by 韩红坡 on 2017/4/24.
//  Copyright © 2017年 韩红坡. All rights reserved.
//

#import "HHPCommonService.h"
#import "HHPCommonMacro.h"
#import "HHPService.h"
#import "HHPLiveModel.h"

@implementation HHPCommonService

- (HHPHTTPRequest *)fetchMyOnlineFriendsData
{
    HHPHTTPRequest *request = [[HHPHTTPRequestManager manager] createRequest];
    
    request.method = HHPHTTPMethodPost;
    request.url = Common_GetMyOnlineFriendsList;
    
    [request setParam:@"useridx" value:@"60906990"];
    
    request.options.dataHandler = [HHPHTTPDataHandler dataHandlerWithType:HHPHTTPDataHandlerTypeArray modelClass:[HHPLiveModel class]];
    
    return request;
}

- (HHPHTTPRequest *)fetchMyAllFriendsData
{
    HHPHTTPRequest *request = [[HHPHTTPRequestManager manager] createRequest];
    
    request.method = HHPHTTPMethodPost;
    request.url = Common_GetMyAllFriendsList;

    [request setParam:@"useridx" value:@"60906990"];
    
    request.options.dataHandler = [HHPHTTPDataHandler dataHandlerWithType:HHPHTTPDataHandlerTypeArray modelClass:[HHPLiveModel class]];
    
    return request;
}

@end
